GBML manual / Constants

BTN_LEFT

The GBA’s LEFT button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_LEFT: constant

Description

Names the GBA's LEFT button, for passing to btn_held, btn_pressed or btn_released - the d-pad's left direction. Prefer btn_dx for an axis reading.

Example

if (btn_pressed(BTN_LEFT)) {
    var fired = true;
}

Checks for a fresh press of LEFT this frame.

See also: btn_heldbtn_pressedbtn_released